public class D05
{
    public static void main(String[] args) {
        String name = "Tom";
        System.out.println("Hello, " + name + "!");


        System.out.println("Ja" + "va" + " " + "8");


        System.out.println(1 + 2 + "3");
        System.out.println("1" + 2 + 3);
    }
}
